No Object Generated Error
class NoObjectGeneratedError(message: String = "No object generated", val text: String? = null, val response: LanguageModelResponseMetadata? = null, val usage: Usage? = null, val finishReason: FinishReason? = null, cause: Throwable? = null) : AiSdkException
Thrown when no object could be generated (the model failed, or its output could not be parsed/validated). Carries the diagnostic context upstream's NoObjectGeneratedError exposes so callers can inspect the raw text, the response metadata, the token usage, and the finish reason of the failed call.
Constructors
Link copied to clipboard
constructor(message: String = "No object generated", text: String? = null, response: LanguageModelResponseMetadata? = null, usage: Usage? = null, finishReason: FinishReason? = null, cause: Throwable? = null)